package com.lhf.personredis.dao;

import com.lhf.personredis.entity.Person;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
public interface PersonDao {
    List<Person>getPerson(@Param("name") String name, @Param("sex") int sex);
    @Select("select introduce from person where id=#{aa}")
    String getinfo(int id);
    @Delete("delete from person where id=#{id}")
    int del(Person person);
}
